<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>初始Vue</title>
    <!-- 引入VUE-->
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
    <!-- 准备好容器 -->
    <div id="root">
        <h1>插值语法</h1>
        <h1>hello, {{ name }}</h1>
        <hr/>
        <h1>指令语法</h1>
        <a :href="url">点我去上硅谷</a>
    </div>
</body>

<script>
    Vue.config.productionTip = false;
    new Vue({
        el: '#root', // 当前Vue实例服务容器，值为css选择器字符串
        data: { // 指定保存数据
            name: "张三",
            age: "18",
            url:'http://www.atguigu.com'
        }
    })
</script>
</html>